package org.swim.web.utils;

public class SwimConst {
	public class Url {
		public static final String SERVER = "http://localhost:8080";
		public static final String WEBCONTENT = SERVER + "/swim";
		public static final String HOME = WEBCONTENT;
		public static final String BOOTSTRAP = WEBCONTENT + "/bootstrap";

		public class Servlet {
			public static final String HOME = WEBCONTENT + "/home";
			public static final String SEARCH = WEBCONTENT + "/search";
			public static final String PROFILE = WEBCONTENT + "/profile";
			public static final String COLLABORATION = WEBCONTENT + "/collaboration";
			public static final String NOTIFICATION = WEBCONTENT + "/notification";
			public static final String ADMIN = WEBCONTENT + "/admin";
		}
	}

	private static final String title = "Swim 2.0 - right person for right job";

	public static String getTitle(String info) {
		if (info == null)
			return getTitle();

		return info + " - " + title;
	}

	public static String getTitle() {
		return title;
	}
}
